import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:sui_shou_pai/my/init_info/init_information.dart';

class MyInfo extends StatefulWidget {
  @override
  _MyInfoState createState() => _MyInfoState();
}

class _MyInfoState extends State<MyInfo> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        centerTitle: true,
        title: Text("我的资料"),
        elevation: 0,
      ),
      body: Material(
        child: SingleChildScrollView(
          child: Container(
            color: Colors.white,
            padding: EdgeInsets.all(16),
            child: Column(
              children: <Widget>[
                Container(
                  padding: EdgeInsets.all(16),
                  child: Row(
                    children: <Widget>[
                      Container(
                        width: 80,
                        child: Text(
                          '姓名',
                          style: TextStyle(fontSize: 20, color: Colors.grey),
                        ),
                      ),
                      Text(
                        InitInformation.name,
                        style: TextStyle(fontSize: 20, color: Colors.black),
                      ),
                    ],
                  ),
                ),
                Container(
                  padding: EdgeInsets.all(16),
                  child: Row(
                    children: <Widget>[
                      Container(
                        width: 80,
                        child: Text(
                          '性别',
                          style: TextStyle(fontSize: 20, color: Colors.grey),
                        ),
                      ),
                      Text(
                        InitInformation.sex,
                        style: TextStyle(fontSize: 20, color: Colors.black),
                      ),
                    ],
                  ),
                ),
                Container(
                  padding: EdgeInsets.all(16),
                  child: Row(
                    children: <Widget>[
                      Container(
                        width: 80,
                        child: Text(
                          '员工号',
                          style: TextStyle(fontSize: 20, color: Colors.grey),
                        ),
                      ),
                      Text(
                        InitInformation.employeeId,
                        style: TextStyle(fontSize: 20, color: Colors.black),
                      ),
                    ],
                  ),
                ),
                Container(
                  padding: EdgeInsets.all(16),
                  child: Row(
                    children: <Widget>[
                      Container(
                        width: 80,
                        child: Text(
                          '职位',
                          style: TextStyle(fontSize: 20, color: Colors.grey),
                        ),
                      ),
                      Text(
                        InitInformation.position,
                        style: TextStyle(fontSize: 20, color: Colors.black),
                      ),
                    ],
                  ),
                ),
                Container(
                  padding: EdgeInsets.all(16),
                  child: Row(
                    children: <Widget>[
                      Container(
                        width: 80,
                        child: Text(
                          '手机号',
                          style: TextStyle(fontSize: 20, color: Colors.grey),
                        ),
                      ),
                      Text(
                        InitInformation.phone,
                        style: TextStyle(fontSize: 20, color: Colors.black),
                      ),
                    ],
                  ),
                ),
                Container(
                  padding: EdgeInsets.all(16),
                  child: Row(
                    children: <Widget>[
                      Container(
                        width: 80,
                        child: Text(
                          '生日',
                          style: TextStyle(fontSize: 20, color: Colors.grey),
                        ),
                      ),
                      Text(
                        InitInformation.birth,
                        style: TextStyle(fontSize: 20, color: Colors.black),
                      ),
                    ],
                  ),
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
